import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/msg_identity_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/msg_identity_entity.g.dart';

@JsonSerializable()
class MsgIdentityEntity {
	@JSONField(name: "Code")
	late int code;
	@JSONField(name: "Data")
	late List<MsgIdentityData> data;
	@JSONField(name: "Msg")
	late String msg;

	MsgIdentityEntity();

	factory MsgIdentityEntity.fromJson(Map<String, dynamic> json) => $MsgIdentityEntityFromJson(json);

	Map<String, dynamic> toJson() => $MsgIdentityEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MsgIdentityData {
	@JSONField(name: "Id")
	late int id;
	@JSONField(name: "TeamId")
	late String teamId;
	@JSONField(name: "CreatorAccount")
	late String creatorAccount;
	@JSONField(name: "TeamOwner")
	late String teamOwner;
	@JSONField(name: "BuyerCode")
	late String buyerCode;
	@JSONField(name: "BuyerAccount")
	late String buyerAccount;
	@JSONField(name: "SellerCode")
	late String sellerCode;
	@JSONField(name: "SellerAccount")
	late String sellerAccount;
	@JSONField(name: "GameId")
	late int gameId;
	@JSONField(name: "GameName")
	late String gameName;
	@JSONField(name: "GameType")
	late String gameType;
	@JSONField(name: "TeamType")
	late String teamType;
	@JSONField(name: "TeamName")
	late String teamName;
	@JSONField(name: "CompensationCode")
	late String compensationCode;
	@JSONField(name: "CompensationType")
	late String compensationType;
	@JSONField(name: "Payee")
	dynamic payee;
	@JSONField(name: "ClosingTime")
	dynamic closingTime;
	@JSONField(name: "DissolutionStatus")
	late int dissolutionStatus;
	@JSONField(name: "DissolutionTime")
	dynamic dissolutionTime;
	@JSONField(name: "OrderId")
	late int orderId;
	@JSONField(name: "OrderTitle")
	late String orderTitle;
	@JSONField(name: "OrderChannelId")
	late int orderChannelId;

	MsgIdentityData();

	factory MsgIdentityData.fromJson(Map<String, dynamic> json) => $MsgIdentityDataFromJson(json);

	Map<String, dynamic> toJson() => $MsgIdentityDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}